<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Data-Table 表格</title>
    <link rel="stylesheet" href="../../frame/layui/css/layui.css">
    <link rel="stylesheet" href="../../frame/static/css/style.css">
    <link rel="stylesheet" href="../../css/common.css">
    <style>
        .layui-form{
            margin-top: 25px;
        }
        .layui-input{
            width: 182px;
        }
    </style>
</head>
<body>
<div class="layui-col-md12">
    <form class="layui-form" url="admin/beiliset" id="ajaxForm" method="post">
        <input type="hidden" id="ids" value="" name="id">
        <div class="layui-form">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">参数描述</label>
                <div class="layui-input-block">
                    <span  class="layui-input" id="desc"></span>
                </div>
            </div>
        </div>
        <div class="layui-form">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">参数</label>
                <div class="layui-input-block">
                    <input id="num" placeholder="请输入参数" class="layui-input" name="num"/>
                </div>
            </div>
        </div>
      	<div class="layui-form">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">通知标题</label>
                <div class="layui-input-block">
                    <input id="num" placeholder="请输入通知栏标题" class="layui-input" name="title"/>
                </div>
            </div>
        </div>
      	<div class="layui-form">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">通知内容</label>        
            	<div class="layui-input-block">
                	<textarea id="content" name="msg" style="width:250px;height:140px" placeholder="请输入内容" class="layui-textarea"></textarea>
            	</div>
            </div>
        </div>
        <div class="layui-form">
            <div class="layui-form-item" style="overflow: hidden;">
                <div class="layui-input-block layui-input-right">
                    <a class="layui-btn" id="ajax-btn">立即提交</a>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="../../js/public/jquery-3.1.1.min.js"></script>
<script src="../../js/layer/layer.js"></script>
<script src="../../js/public/common.js"></script>
<script>
    $(function(){
        GetDetail()
    })
    function GetDetail(){
        let id = GetQueryString('id');
        let data = AjaxForm('admin/BeiliDetail?id='+id);
        $('#desc').text(data.desc);
        $('#num').val(data.content);
        $('#ids').val(data.id)
      	$('input[name="title"]').val(data.title);
      	$('textarea[name="msg"]').val(data.msg);
    }
</script>
</body>
</html>